package com.gsi.webstore.platform.storefront.internal.giftcard;

import java.util.Comparator;

public class NaturalOrderIntegerComparator implements Comparator<String>{

    @Override
    public int compare(String arg0, String arg1){
        int result = -1;
        if((arg0 != null)&&(arg1 != null)){
            Integer first = Integer.parseInt(arg0);
            Integer second = Integer.parseInt(arg1);
            result = first.compareTo(second);
        }
        return result;
    }

}
